<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north'" class="center">
        <div class="webmap">
            <a href="javascript:;" class="easyui-link" data-options="plain:true">内容管理</a>
            <p class="webmaptip">></p>
            <a href="javascript:;" class="easyui-link" data-options="plain:true">常见问题</a>
        </div>
        <div class="querybycon">
            <form id="query">
                <div class="queryinfo">
                    <div> 问题栏目 <input class="easyui-combobox" name="faqType.id"
                                      data-options="valueField:'id' , url:'/faqtype/types'"></div>
                    <div> 问题标题<input type="text" name="title"></div>
                    <div> 状态<input class="easyui-combobox" name="state"
                                   data-options="url:'/dictionary/pubStatusType'"></div>
                    <div class="query">
                        <a id="querybtn" href="javascript:;" class="easyui-linkbutton  "
                           data-options="iconCls:'fa fa-search'"></a>
                    </div>
                </div>
            </form>
        </div>
        <div class="querybtn">
            <a id="add" href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'fa fa-plus'">添加</a>
            <a id="edit" href="javascript:;" class="easyui-linkbutton"
               data-options="iconCls:'fa fa-pencil'">编辑</a>
            <a id="del" href="javascript:;" class="easyui-linkbutton"
               data-options="iconCls:'fa fa-remove '">删除</a>
            <a id="detail" href="javascript:;" class="easyui-linkbutton"
               data-options="iconCls:'fa fa-search'">查看</a>
            <div style="visibility: hidden;">aa</div>
        </div>

    </div>
    <div data-options="region:'center'">
        <table id="list"></table>
    </div>
</div>

<script type="text/javascript">
    var addUrl = "page/faq/faqadd.html";
    var editUrl = "page/faq/faqedit.html";
    var detailUrl = "page/faq/faqinfo.html";
    var delUrl = '/faq/del';
    var save = '/faq/save';
    var listUrl = "/faq/list";
    var edit = "/faq/edit";
    var detail = "/faq/edit";
    var columns = [[{
        field: 'id',
        checkbox: true
    }, {
        field: 'faqType',
        title: '问题栏目',
        formatter: function (value, row, index) {
            if (value != null) {
                return value.name;
            }
        }
    }, {
        field: 'title',
        title: '问题标题',
    }, {
        field: 'state',
        title: '状态',
        formatter: function (value, row, index) {
            return dic["pubStatusType"][value.toString()];
        }
    }, {
        field: 'publishTime',
        title: '发布时间',
    }]];
    list.init({url: listUrl, columns: columns});
</script>
